home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
comm
/
amipop17.zip
/
AMIPOP1.6-A
< prev
next >
Wrap
Internet Message Format
|
1993-11-23
|
4KB
From too@snakemail.hut.fi Wed Nov 17 06:16:17 1993
Received: from lk-hp-13.hut.fi (lk-hp-14.hut.fi) by ucssun1.sdsu.edu (4.1/1.34)
id AA08075; Wed, 17 Nov 93 06:16:12 PST
From: too@snakemail.hut.fi
Received: by lk-hp-13.hut.fi (5.65c8/8.0/S-TeKoLa)
id AA04850; Wed, 17 Nov 1993 16:15:26 +0200
Date: Wed, 17 Nov 1993 16:15:26 +0200
Message-Id: <199311171415.AA04850@lk-hp-13.hut.fi>
To: sellis@ucssun1.sdsu.edu
In-Reply-To: scotte@137.110.11.73's message of 15 Nov 1993 05:15:44 GMT
Subject: Re: AmiPOP 1.6 (again)
X-Charset: ASCII
X-Char-Esc: 29
Status: O
X-Status: OR
Hello
I did the AmiTCP/IP port for AmiPOP (It took less than a hour, thanks for
localizing network part to only one file). I just moved network related
include files from pop.h to pop_dopop.h and added some defines and made
separate OpenLibrary() for AS225 and AmiTCP/IP (AmiPOP-AmiTCP compiles for
AS225 too). I changed nothing else so it should work as the original.
I have one suggestion to make so that future ports comes a little more
straightforward to make (I had an intention to connect you earlyer, but
other businesses took my time). Move the network related include files from
pop.h to pop_dopop.c (Since those files are used only in one file, it
doesn't slow down compile time even not included in GST).
hmm, I'll include a context diff what I've done to AmiPOP16 to make and
motivate (possible) work a little bit :)
laphroaig source % diff -c pop.h.old pop.h
*** pop.h.old Tue Sep 14 19:44:32 1993
--- pop.h Thu Oct 21 22:09:46 1993
***************
*** 23,37 ****
#include <graphics/gfxbase.h>
#include <workbench/startup.h>
#include <devices/timer.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
- #include <errno.h>
- #include <ss/socket.h>
- #include <netdb.h>
#include <fcntl.h>
#include <time.h>
--- 23,31 ----
Exit 1
laphroaig source % diff -c pop_dopop.c.old pop_dopop.c
*** pop_dopop.c.old Sun Oct 17 17:37:34 1993
--- pop_dopop.c Thu Oct 21 22:08:54 1993
***************
*** 1,7 ****
--- 1,21 ----
#include "pop.h"
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/param.h>
+ #include <errno.h>
+ #include <netdb.h>
+
/* Variables global to this file */
+ #ifdef AMITCP
+ #define SockBase SocketBase
+ #define cleanup_sockets()
+ #define s_close(s) CloseSocket(s)
+ #else
+ #include <ss/socket.h>
+ #endif
+
struct Library *SockBase ;
int havemail;
***************
*** 18,29 ****
sprintf(title,"Connecting to %s",pophost);
settitle();
! if((SockBase = OpenLibrary( "inet:libs/socket.library", 1L )) == NULL)
{
doreq("Error opening socket.library\n",bum);
return(1);
}
setup_sockets( MAXSOCKS, &errno );
if((hp=gethostbyname(pophost))==NULL)
{
--- 32,54 ----
sprintf(title,"Connecting to %s",pophost);
settitle();
!
! if(
! #ifdef AMITCP
! (SocketBase = OpenLibrary( "bsdsocket.library", 2L ))
! #else
! (SockBase = OpenLibrary( "inet:libs/socket.library", 1L ))
! #endif
! == NULL)
{
doreq("Error opening socket.library\n",bum);
return(1);
}
+ #ifdef AMITCP
+ SetErrnoPtr(&errno, sizeof errno);
+ #else
setup_sockets( MAXSOCKS, &errno );
+ #endif
if((hp=gethostbyname(pophost))==NULL)
{
***************
*** 420,423 ****
}
return(1);
! }
\ No newline at end of file
--- 445,448 ----
}
return(1);
! }
Exit 1
Tomi